package 复合模式;

/**
 * @author zzs
 * @ClassName GooseAdapter.java
 * @Description
 * @createTime 2022年05月21日 10:10:00
 */
public class GooseAdapter implements Duck {
    private Goose goose;

    public GooseAdapter(Goose goose) {
        this.goose = goose;
    }

    @Override
    public void quack() {
        goose.quack();
    }
}
